package com.zzyl.nursing.job;

import com.zzyl.nursing.service.IAlertRuleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 * 设备报警规则校验定时任务
 *
 * @Author wd
 * @Date 2025/5/29 16:23
 */
@Component
@Slf4j
public class AlertRuleJob {

    @Autowired
    private IAlertRuleService alertRuleService;

    /**
     * 定时进行设备对应的报警规则校验，将报警数据保存到数据库中
     */
    public void alertRuleFilter(){
        alertRuleService.alertRuleFilter();
        log.info("设备报警规则校验定时任务执行完毕。");
    }


}
